package mvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class HelloControll {
	
	@RequestMapping("/hello.jobtc")
	public ModelAndView hello(){
		ModelAndView m = new ModelAndView();
		m.setViewName("hello");
		
		return m;
	}
	
	

}




/*WebContent /mvcHello/Hello.jsp (VIEW)  를 이곳에서 만든다.*/

/*Spring MVC

파일 구조

WebContent /mvcHello/Hello.jsp			(VIEW) -- 출력될 문구를 써 넣어 주어도 됨

WEB_INF/web.xml
WEB_INF/mvcHello-servlet.xml(dispatcher file)
src/mvc/HelloControll.java			(Controll)
WebContent/mvc_list.jsp(mvc sample file list)
*/